.class Lcom/opongo/blogapp/activities/PostsActivity$3;
.super Ljava/lang/Object;
.source "PostsActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/PostsActivity;->onStart()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/PostsActivity;

.field private final synthetic val$apiManager:Lcom/opongo/blogapp/manager/APIManager;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/PostsActivity;Lcom/opongo/blogapp/manager/APIManager;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->this$0:Lcom/opongo/blogapp/activities/PostsActivity;

    iput-object p2, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->val$apiManager:Lcom/opongo/blogapp/manager/APIManager;

    .line 209
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    .line 211
    iget-object v0, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->this$0:Lcom/opongo/blogapp/activities/PostsActivity;

    iget-object v1, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->val$apiManager:Lcom/opongo/blogapp/manager/APIManager;

    const-string v2, ""

    invoke-virtual {v1, v2}, Lcom/opongo/blogapp/manager/APIManager;->registerUser(Ljava/lang/String;)I

    move-result v1

    #setter for: Lcom/opongo/blogapp/activities/PostsActivity;->userId:I
    invoke-static {v0, v1}, Lcom/opongo/blogapp/activities/PostsActivity;->access$1(Lcom/opongo/blogapp/activities/PostsActivity;I)V

    .line 213
    iget-object v0, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->this$0:Lcom/opongo/blogapp/activities/PostsActivity;

    #getter for: Lcom/opongo/blogapp/activities/PostsActivity;->userId:I
    invoke-static {v0}, Lcom/opongo/blogapp/activities/PostsActivity;->access$2(Lcom/opongo/blogapp/activities/PostsActivity;)I

    move-result v0

    if-lez v0, :cond_1

    .line 214
    sget-boolean v0, Lcom/opongo/blogapp/activities/PostsActivity;->DEBUG:Z

    if-eqz v0, :cond_0

    .line 215
    invoke-static {}, Lcom/opongo/blogapp/activities/PostsActivity;->access$3()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "User successfully registered with id "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 216
    iget-object v2, p0, Lcom/opongo/blogapp/activities/PostsActivity$3;->this$0:Lcom/opongo/blogapp/activities/PostsActivity;

    #getter for: Lcom/opongo/blogapp/activities/PostsActivity;->userId:I
    invoke-static {v2}, Lcom/opongo/blogapp/activities/PostsActivity;->access$2(Lcom/opongo/blogapp/activities/PostsActivity;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 215
    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 222
    :cond_0
    :goto_0
    return-void

    .line 219
    :cond_1
    sget-boolean v0, Lcom/opongo/blogapp/activities/PostsActivity;->DEBUG:Z

    if-eqz v0, :cond_0

    .line 220
    invoke-static {}, Lcom/opongo/blogapp/activities/PostsActivity;->access$3()Ljava/lang/String;

    move-result-object v0

    const-string v1, "User NOT registered!"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method
